package com.bysj.lms.service;

import com.bysj.lms.pojo.dto.LmsBrDto;
import com.bysj.lms.pojo.entity.LmsBr;
import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author xiaojiakai
 * @since 2022-02-04
 */
public interface ILmsBrService extends IService<LmsBr> {

    PageInfo<LmsBrDto> findByPage(String name,String uid, String status, Integer page, Integer count);


    boolean approve(LmsBr lmsBr);

    boolean giveBack(String id);

    //批量批准
    boolean approveBatch(List<LmsBr>lmsBrs);

    //监听超时
    void TimeOutListener();
    
    //申请借出
    boolean applyLoan(LmsBr lmsBr);
}
